<?php

if(!defined('IN_AACMS')) {
	exit('Access Denied');
}

$pid = intval($_GET['pid']);

$sgpage = DB::getRow("SELECT * FROM ".DB::table('sgpage')." WHERE pid='$pid'");
if(!$sgpage) {
	showmessage('parameter_error', dreferer());
}

include template('misc/sgpage');

?>